.class public Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter;
.super Landroidx/recyclerview/widget/RecyclerView$Adapter;
.source "LongImageRecyclerView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "EntryAdapter"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroidx/recyclerview/widget/RecyclerView$Adapter<",
        "Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;",
        ">;"
    }
.end annotation


# instance fields
.field private a:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;

.field private b:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;

.field final synthetic c:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView;


# direct methods
.method constructor <init>(Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView;Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter;->c:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView;

    invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;-><init>()V

    .line 2
    iput-object p2, p0, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter;->a:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;

    .line 3
    iput-object p3, p0, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter;->b:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter;Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter;->a(Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;)V

    return-void
.end method

.method private a(Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;)V
    .locals 3

    .line 11
    iget-object v0, p1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->c:Landroid/view/ViewGroup;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getHeight()I

    move-result v0

    .line 12
    iget-object v1, p1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->a:Landroid/view/ViewGroup;

    invoke-virtual {v1}, Landroid/view/ViewGroup;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup$MarginLayoutParams;

    neg-int v2, v0

    .line 13
    div-int/lit8 v2, v2, 0x2

    iput v2, v1, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    .line 14
    iget-object v2, p1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->a:Landroid/view/ViewGroup;

    invoke-virtual {v2, v1}, Landroid/view/ViewGroup;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 15
    iget-object v1, p1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->d:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v1

    .line 16
    div-int/lit8 v0, v0, 0x2

    iput v0, v1, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 17
    iget-object p1, p1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->d:Landroid/view/View;

    invoke-virtual {p1, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method


# virtual methods
.method public a(Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;I)V
    .locals 2

    .line 2
    iget-object v0, p1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->e:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;

    invoke-virtual {v0, p2}, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;->a(I)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter;->a:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;

    iget-object v1, p1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->e:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;

    invoke-virtual {v0, v1, p2}, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;->a(Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;I)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter;->b:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;

    if-eqz v0, :cond_1

    .line 5
    iget-object v0, p1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->f:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;

    invoke-virtual {v0, p2}, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;->a(I)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter;->b:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;

    iget-object v1, p1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->f:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;

    invoke-virtual {v0, v1, p2}, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;->a(Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;I)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter;->a:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;->a()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne p2, v0, :cond_0

    .line 8
    iget-object p2, p1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->f:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;

    iget-object p2, p2, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;->a:Landroid/view/View;

    const/4 v0, 0x4

    invoke-virtual {p2, v0}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 9
    :cond_0
    iget-object p2, p1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->f:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;

    iget-object p2, p2, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;->a:Landroid/view/View;

    const/4 v0, 0x0

    invoke-virtual {p2, v0}, Landroid/view/View;->setVisibility(I)V

    .line 10
    :cond_1
    :goto_0
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter;->c:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView;

    new-instance v0, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter$a;

    invoke-direct {v0, p0, p1}, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter$a;-><init>(Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter;Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;)V

    invoke-virtual {p2, v0}, Landroid/view/ViewGroup;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public getItemCount()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter;->a:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;->a()I

    move-result v0

    return v0
.end method

.method public bridge synthetic onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
    .locals 0

    .line 1
    check-cast p1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;

    invoke-virtual {p0, p1, p2}, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter;->a(Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;I)V

    return-void
.end method

.method public bridge synthetic onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .locals 0

    .line 1
    invoke-virtual {p0, p1, p2}, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter;->onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;

    move-result-object p1

    return-object p1
.end method

.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/NullPointerException;
        }
    .end annotation

    .line 2
    invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    .line 3
    sget v1, Les/y4;->durec_longimage_entry_item:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    .line 4
    new-instance v1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter;->c:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView;

    invoke-direct {v1, v2, v0}, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;-><init>(Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView;Landroid/view/View;)V

    .line 5
    sget v2, Les/x4;->longimage_entry_container:I

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/view/ViewGroup;

    iput-object v2, v1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->a:Landroid/view/ViewGroup;

    .line 6
    sget v2, Les/x4;->longimage_entry_item_container:I

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/view/ViewGroup;

    iput-object v2, v1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->b:Landroid/view/ViewGroup;

    .line 7
    sget v2, Les/x4;->longimage_entry_middle_container:I

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/view/ViewGroup;

    iput-object v2, v1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->c:Landroid/view/ViewGroup;

    .line 8
    sget v2, Les/x4;->longimage_entry_empty_space:I

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->d:Landroid/view/View;

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter;->a:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;

    invoke-virtual {v0, p1, p2}, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;->a(Landroid/view/ViewGroup;I)Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 10
    iput-object v0, v1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->e:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;

    .line 11
    iget-object v2, v1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->b:Landroid/view/ViewGroup;

    iget-object v0, v0, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;->a:Landroid/view/View;

    invoke-virtual {v2, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 12
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryAdapter;->b:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;

    if-eqz v0, :cond_1

    .line 13
    invoke-virtual {v0, p1, p2}, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;->a(Landroid/view/ViewGroup;I)Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 14
    iput-object p1, v1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->f:Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;

    .line 15
    iget-object p2, v1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$EntryViewHolder;->c:Landroid/view/ViewGroup;

    iget-object p1, p1, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;->a:Landroid/view/View;

    invoke-virtual {p2, p1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    goto :goto_0

    .line 16
    :cond_0
    new-instance p1, Ljava/lang/NullPointerException;

    const-string p2, "middleHolder is null"

    invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_1
    :goto_0
    return-object v1

    .line 17
    :cond_2
    new-instance p1, Ljava/lang/NullPointerException;

    const-string p2, "itemViewHolder is null"

    invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    throw p1
.end method
